CHALLENGE 2: To give a sprite a command, you have to use its name. This is called dot notation.

If you run the code below without changing it, you will get an error because the names on the commands do not refer to the sprite names.

  • Put the correct sprite name in front of each move command to score points.
  • Move the bball into the basketball hoop and the soccer_ball to the soccer net.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)